<?php
  include "includes/params.php";
  include "lib/json_fix.php"; 
  include $info_strings;  
  session_start();
  if (isset($_SESSION['login']))
  {
    $responce->loginset = true;  
    $responce->login = $_SESSION['login'];  
      
    $responce->text;
    $con = oci_pconnect($username, $password, $database);
    if ($con) {
      $responce->dbconnected = true;      
    } else {
      $responce->dbconnected = false;
       $m = oci_error();    
      $responce->text = $m["message"];
    }    
  } else {
    $responce->loginset = false;
    $responce->login = null;
    $responce->text = $im_wellcom;
  } 
  echo json_encode2($responce);
?>
